package com.bw.liuyushan.mvp_lib.Presenter;

import com.bw.liuyushan.mvp_lib.Model.IModel;
import com.bw.liuyushan.mvp_lib.View.IView;

import io.reactivex.disposables.Disposable;

/**
 * ZhuanGao4_WeekTest2
 * file name is : BasePresenter
 * created by Ender on 2021/8/23 8:14.
 * author : 刘雨杉
 * Describe(作用):
 */
public class BasePresenter<M extends IModel,V extends IView> implements IPresenter {
    protected M im;
    protected V iv;
    Disposable disposable;

    public BasePresenter(M im, V iv) {
        this.im = im;
        this.iv = iv;
    }

    @Override
    public void Destory() {
        if (disposable!=null){
            disposable.dispose();
            disposable=null;
        }
    }
}
